package com.game.gm.handler;


import com.game.gm.message.ResGMmsgMessage;
import com.xsprite.managesys.log.LogManager;

public class ResGMmsgHandler extends Handler {
	
	private boolean isFinish = false;
	private String userid;
	private int gmNo;
	
	
	public void action() {
		ResGMmsgMessage msg = (ResGMmsgMessage) getMessage();
		getWriter().println(msg.getMsg());
		setFinish(true);
		LogManager.getInstance().log4j("userid = " + userid + " action=gm" + getGmNo() + " " + msg.getMsg());
	}

	public boolean isFinish() {
		return isFinish;
	}

	public void setFinish(boolean isFinish) {
		this.isFinish = isFinish;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public int getGmNo() {
		return gmNo;
	}

	public void setGmNo(int gmNo) {
		this.gmNo = gmNo;
	}
}